#ifndef IRR2D_H
#define IRR2D_H
#include <iostream>
#include <strings.h>
#include <irrlicht.h>
#include "IrrLib.h"
#include "IrrSprite.h"
class
Irr2D {
private
:
irr::scene::ISceneManager* smgr;
irr::video::IVideoDriver* driver;
irr::video::ITexture* texturemap;
int
numTextures;
irr::video::ITexture* textures[10];
public
:
IrrSprite Sprite;
Irr2D::Irr2D();
Irr2D::~Irr2D();
void
Irr2D::SetDriver(irr::video::IVideoDriver* driver);
void
Irr2D::SetSmgr(irr::scene::ISceneManager* smgr);
void
Irr2D::LoadTexturemap(std::string file);
int
Irr2D::LoadTexture(std::string file);
void
Irr2D::DrawImage(
int
texture,
const
irr::core::position2d<irr::s32> & destPos);
void
Irr2D::DrawImage(
const
irr::core::position2d<irr::s32> & destPos,
const
irr::core::rect<irr::s32> & sourceRect,
const
irr::core::rect<irr::s32> * clipRect, irr::video::SColor color,
bool
useAlphaChannelOfTexture);
void
Irr2D::DrawLine(
const
irr::core::position2d<irr::s32> & start,
const
irr::core::position2d<irr::s32> & end, irr::video::SColor color);
};
#endif